package com.ctg.itrdc.imageconsole.data.dto;

import java.io.Serializable;
import java.sql.Timestamp;

public class BaseDTO implements Serializable {
    
    private static final long serialVersionUID = -518436674267159998L;
    
	private Long createUserId;     //创建人
	private String createTime; //创建时间
    private String statusCd;   //状态：状态S0A有效S0X无效
    private Timestamp statusDate; //状态时间
	private Long lastUpdateUserId;     //创建人
    private String lastUpdateTime; //修改时间
                                   
    public BaseDTO() {
        //增加空指针判断，后端部署不存在Session
        try {
//            if (ActionContext.getContext() != null && ServletActionContext.getRequest() != null) {
//                HttpSession httpSession = ServletActionContext.getRequest().getSession();
//                SessionDTO session = (SessionDTO) httpSession.getAttribute("sessionDTO");
//                if (session != null && session.getSysstaffDTO() != null) {
//                    Long staffid = session.getSysstaffDTO().getStaffId();
//                    if (staffid != null && staffid > 0)
//                        this.createStaff = staffid.toString();
//                }
                
                //this.createDate = new Timestamp((new Date()).getTime());
//            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    
    public String getStatusCd() {
        return statusCd;
    }
    
    public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }
    
    public Timestamp getStatusDate() {
        return statusDate;
    }
    
    public void setStatusDate(Timestamp statusDate) {
        this.statusDate = statusDate;
    }

	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public Long getLastUpdateUserId() {
		return lastUpdateUserId;
	}

	public void setLastUpdateUserId(Long lastUpdateUserId) {
		this.lastUpdateUserId = lastUpdateUserId;
	}

	public String getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(String lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
    
}
